package com.hjxr.xmgl.web.service.impl;

import java.util.List;

import com.hjxr.xmgl.web.domain.QuotaEarlyWarningInfos;
import com.hjxr.xmgl.web.mapper.QuotaEarlyWarningInfosMapper;
import com.hjxr.xmgl.web.service.IQuotaEarlyWarningInfosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 预警指标配置明细Service业务层处理
 *
 * @author hjxr
 * @date 2021-12-02
 */
@Service
public class QuotaEarlyWarningInfosServiceImpl implements IQuotaEarlyWarningInfosService
{
    @Autowired
    private QuotaEarlyWarningInfosMapper quotaEarlyWarningInfosMapper;

    /**
     * 查询预警指标配置明细
     *
     * @param ewInfoId 预警指标配置明细ID
     * @return 预警指标配置明细
     */
    @Override
    public QuotaEarlyWarningInfos selectQuotaEarlyWarningInfosById(String ewInfoId)
    {
        return quotaEarlyWarningInfosMapper.selectQuotaEarlyWarningInfosById(ewInfoId);
    }

    /**
     * 查询预警指标配置明细列表
     *
     * @param quotaEarlyWarningInfos 预警指标配置明细
     * @return 预警指标配置明细
     */
    @Override
    public List<QuotaEarlyWarningInfos> selectQuotaEarlyWarningInfosList(QuotaEarlyWarningInfos quotaEarlyWarningInfos)
    {
        return quotaEarlyWarningInfosMapper.selectQuotaEarlyWarningInfosList(quotaEarlyWarningInfos);
    }

    /**
     * 新增预警指标配置明细
     *
     * @param quotaEarlyWarningInfos 预警指标配置明细
     * @return 结果
     */
    @Override
    public int insertQuotaEarlyWarningInfos(QuotaEarlyWarningInfos quotaEarlyWarningInfos)
    {
        return quotaEarlyWarningInfosMapper.insertQuotaEarlyWarningInfos(quotaEarlyWarningInfos);
    }

    /**
     * 修改预警指标配置明细
     *
     * @param quotaEarlyWarningInfos 预警指标配置明细
     * @return 结果
     */
    @Override
    public int updateQuotaEarlyWarningInfos(QuotaEarlyWarningInfos quotaEarlyWarningInfos)
    {
        return quotaEarlyWarningInfosMapper.updateQuotaEarlyWarningInfos(quotaEarlyWarningInfos);
    }

    /**
     * 批量删除预警指标配置明细
     *
     * @param ewInfoIds 需要删除的预警指标配置明细ID
     * @return 结果
     */
    @Override
    public int deleteQuotaEarlyWarningInfosByIds(String[] ewInfoIds)
    {
        return quotaEarlyWarningInfosMapper.deleteQuotaEarlyWarningInfosByIds(ewInfoIds);
    }

    /**
     * 删除预警指标配置明细信息
     *
     * @param ewInfoId 预警指标配置明细ID
     * @return 结果
     */
    @Override
    public int deleteQuotaEarlyWarningInfosById(String ewInfoId)
    {
        return quotaEarlyWarningInfosMapper.deleteQuotaEarlyWarningInfosById(ewInfoId);
    }
}
